﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using SpiritAlight.SceneManagement;
namespace SpiritAlight.Stage
{
    public class Tree : AObstacle
    {
        public override bool IsLoaded
        {
            get { return isLoaded; }
            protected set { isLoaded = value; }
        }
        static bool isLoaded = false;

        public override Vector2  Size
        {
            get { return size; }
        }
        static Vector2 size = new Vector2(200.0f,120.0f);

        public override Texture2D Textrue
        {
            get { return texture; }
        }
        static Texture2D texture;

        public override void LoadContent()
        {
            if (IsLoaded)
                return;
            texture = SceneManager.Content.Load<Texture2D>("Map/Objects/tree");
            base.LoadContent();
        }
        public Tree(Vector2 inPosition)
            : base(inPosition)
        {
        }

    }
}
